package com.api.user.dao;

import com.api.core.ApiMapper;
import com.api.user.model.MessageRead;
import com.api.user.model.MessageRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MessageReadMapper extends ApiMapper<MessageRead> {

    MessageRead getById(@Param("messageId") Long messageId,@Param("userId") Long userId);

    List<MessageRead> getByMessageId(@Param("messageId") Long messageId);

    void updateState(MessageRead messageRead);
}